clear
clc

cd 'D:\data_replication'

load('estimation/5_supply_side/main_data_supply');

% Fraction of sectors with alpha_0 > 0
%--------------------------------------------------------------------------

sum(price_coeff_MPEC < 0) / KK

% Fraction of sectors with alpha_1 < 0
%--------------------------------------------------------------------------

alpha_1 = zeros(KK,1);
for i = 1:4092
    X_MPEC = X_MPEC_opt_summary{1,i};
    alpha_1(i,1) = X_MPEC(12,1);
end

sum(alpha_1 > 0) / KK

